package cn.wp.ewallet.upms.web.controller;

import cn.wp.common.core.Wp;
import cn.wp.common.core.dto.WpResult;
import cn.wp.common.core.model.WpPage;
import cn.wp.ewallet.upms.service.PaUserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yangjin on 2020/2/6
 */
@RestController
@RequestMapping(Wp.WebContext + "/ewallet/upms/user")
@Api(tags="用户信息控制类")
public class PaUserInfoController {

    @Autowired
    private PaUserInfoService paUserInfoService;

    @GetMapping("/getPaUserInfoList")
    @ApiOperation("查询用户信息 全部查询 按手机号查询")
    public WpResult getPaUserInfoList(String userTel, WpPage wpPage) {
        return new WpResult().success(paUserInfoService.getPaUserInfoList(userTel, wpPage));
    }

}
